home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 8 code / AUX Hybrid Apps / AUX System Calls / src / errlst.c < prev    next >
Encoding:
Text File  |  1991-10-09  |  4.6 KB  |  121 lines  |  [TEXT/tefi]

  1. /*    @(#)errlst.c    2.1     */
  2. /*LINTLIBRARY*/
  3. char    *sys_errlist[] = {
  4.     "Error 0",                /* 0 */
  5.     "Not owner",                /* 1 - EPERM */
  6.     "No such file or directory",        /* 2 - ENOENT */
  7.     "No such process",            /* 3 - ESRCH */
  8.     "Interrupted system call",        /* 4 - EINTR */
  9.     "I/O error",                /* 5 - EIO */
  10.     "No such device or address",        /* 6 - ENXIO */
  11.     "Arg list too long",            /* 7 - E2BIG */
  12.     "Exec format error",            /* 8 - ENOEXEC */
  13.     "Bad file number",            /* 9 - EBADF */
  14.     "No child processes",            /* 10 - ECHILD */
  15.     "No more processes",            /* 11 - EAGAIN */
  16.     "Not enough space",            /* 12 - ENOMEM */
  17.     "Permission denied",            /* 13 - EACCES */
  18.     "Bad address",                /* 14 - EFAULT */
  19.     "Block device required",        /* 15 - ENOTBLK */
  20.     "Device busy",                /* 16 - EBUSY */
  21.     "File exists",                /* 17 - EEXIST */
  22.     "Cross-device link",            /* 18 - EXDEV */
  23.     "No such device",            /* 19 - ENODEV */
  24.     "Not a directory",            /* 20 - ENOTDIR */
  25.     "Is a directory",            /* 21 - EISDIR */
  26.     "Invalid argument",            /* 22 - EINVAL */
  27.     "File table overflow",            /* 23 - ENFILE */
  28.     "Too many open files",            /* 24 - EMFILE */
  29.     "Not a typewriter",            /* 25 - ENOTTY */
  30.     "Text file busy",            /* 26 - ETXTBSY */
  31.     "File too large",            /* 27 - EFBIG */
  32.     "No space left on device",        /* 28 - ENOSPC */
  33.     "Illegal seek",                /* 29 - ESPIPE */
  34.     "Read-only file system",        /* 30 - EROFS */
  35.     "Too many links",            /* 31 - EMLINK */
  36.     "Broken pipe",                /* 32 - EPIPE */
  37.  
  38. /* math software */
  39.     "Argument out of domain",        /* 33 - EDOM */
  40.     "Result too large",            /* 34 - ERANGE */
  41.     "No message of desired type",        /* 35 - ENOMSG */
  42.     "Identifier removed",            /* 36 - EIDRM */
  43.     "Channel number out of range",        /* 37 - ECHRNG */
  44.     "Level 2 not synchronized",        /* 38 - EL2NSYNC */
  45.     "Level 3 halted",            /* 39 - EL3HLT */
  46.     "Level 3 reset",            /* 40 - EL3RST */
  47.     "Link number out of range",        /* 41 - ELNRNG */
  48.     "Protocol driver not attached",        /* 42 - EUNATCH */
  49.     "No CSI structure available",        /* 43 - ENOSI */
  50.     "Level 2 halted",            /* 44 - EL2HLT */
  51.     "Error 45",                /* 45 - XX */
  52.     "Error 46",                /* 46 - XX */
  53.     "Error 47",                /* 47 - XX */
  54.     "Error 48",                /* 48 - XX */
  55.     "Error 49",                /* 49 - XX */
  56.     "Error 50",                /* 50 - XX */
  57.     "Error 51",                /* 51 - XX */
  58.     "Error 52",                /* 52 - XX */
  59.     "Error 53",                /* 53 - XX */
  60.     "Error 54",                /* 54 - XX */
  61.  
  62. /* non-blocking and interrupt i/o */
  63.     "Operation would block",        /* 55 - EWOULDBLOCK */
  64.     "Operation now in progress",        /* 56 - EINPROGRESS */
  65.     "Operation already in progress",    /* 57 - EALREADY */
  66.  
  67. /* ipc/network software */
  68.  
  69.     /* argument errors */
  70.     "Socket operation on non-socket",    /* 58 - ENOTSOCK */
  71.     "Destination address required",        /* 59 - EDESTADDRREQ */
  72.     "Message too long",            /* 60 - EMSGSIZE */
  73.     "Protocol wrong type for socket",    /* 61 - EPROTOTYPE */
  74.     "Protocol not available",        /* 62 - ENOPROTOOPT */
  75.     "Protocol not supported",        /* 63 - EPROTONOSUPPORT */
  76.     "Socket type not supported",        /* 64 - ESOCKTNOSUPPORT */
  77.     "Operation not supported on socket",    /* 65 - EOPNOTSUPP */
  78.     "Protocol family not supported",    /* 66 - EPFNOSUPPORT */
  79.     "Address family not supported by protocol family",
  80.                         /* 67 - EAFNOSUPPORT */
  81.     "Address already in use",        /* 68 - EADDRINUSE */
  82.     "Can't assign requested address",    /* 69 - EADDRNOTAVAIL */
  83.  
  84.     /* operational errors */
  85.     "Network is down",            /* 70 - ENETDOWN */
  86.     "Network is unreachable",        /* 71 - ENETUNREACH */
  87.     "Network dropped connection on reset",    /* 72 - ENETRESET */
  88.     "Software caused connection abort",    /* 73 - ECONNABORTED */
  89.     "Connection reset by peer",        /* 74 - ECONNRESET */
  90.     "No buffer space available",        /* 75 - ENOBUFS */
  91.     "Socket is already connected",        /* 76 - EISCONN */
  92.     "Socket is not connected",        /* 77 - ENOTCONN */
  93.     "Can't send after socket shutdown",    /* 78 - ESHUTDOWN */
  94.     "Too many references: can't splice",    /* 79 - ETOOMANYREFS */
  95.     "Connection timed out",            /* 80 - ETIMEDOUT */
  96.     "Connection refused",            /* 81 - EREFUSED */
  97.     "Too many levels of symbolic links",    /* 82 - ELOOP */
  98.     "File name too long",            /* 83 - ENAMETOOLONG */
  99.     "Host is down",                /* 84 - EHOSTDOWN */
  100.     "Host is unreachable",            /* 85 - EHOSTUNREACH */
  101.     "Directory not empty",            /* 86 - ENOTEMPTY */
  102.  
  103. /* Streams errors */
  104.  
  105.     "Device not a stream",            /* 87 - ENOSTR */
  106.     "No data (for delay IO)",        /* 88 - ENODATA */
  107.     "Timer expired",            /* 89 - ETIME */
  108.     "Out of streams resources",        /* 90 - ENOSR */
  109.     "Error 91",                /* 91 - XX */
  110.     "Error 92",                /* 92 - XX */
  111.     "Error 93",                /* 93 - XX */
  112.     "Error 94",                /* 94 - XX */
  113.     "Stale NFS file handle",        /* 95 - ESTALE */
  114.     "Too many levels of remote in path",    /* 96 - EREMOTE */
  115.     "Too many processes",            /* 97 - EPROCLIM */
  116.     "Too many users",            /* 98 - EUSERS */
  117.     "Disc quota exceeded",            /* 99 - EDQUOT */
  118.     "Locking deadlock error"        /* 100 - EDEADLOCK */
  119. };
  120. int    sys_nerr = { sizeof(sys_errlist)/sizeof(sys_errlist[0]) };
  121.